﻿<cfsilent>
	
	<cfscript>
	
		menuArgs = structNew();
		
		structInsert(menuArgs, "TID", event.getArg("TID"), true);
		
		classStep01 = classStep02 = classStep03 = classStep04 = "";
		classStep05 = "lastStep";

		if ( event.getRequestName() eq "taskSummary" ) {
			classStep01 = listAppend(classStep01, "current", " ");
		}
		
		if ( event.getRequestName() eq "planTask" or event.getRequestName() eq "planTaskSetTime" or event.getRequestName() eq "planTaskArrange" ) {
			classStep01 = listAppend(classStep01, "lastDone", " ");
			classStep02 = listAppend(classStep02, "current", " ");
		}
		
		if ( event.getRequestName() eq "commonTask" or event.getRequestName() eq "commonTaskSetTime" or event.getRequestName() eq "commonTaskArrange" ) {
			classStep01 = listAppend(classStep01, "done", " ");
			classStep02 = listAppend(classStep02, "lastDone", " ");
			classStep03 = listAppend(classStep03, "current", " ");
		}
		
		if ( event.getRequestName() eq "openTask" or event.getRequestName() eq "openTaskSetTime" or event.getRequestName() eq "openTaskArrange" ) {
			classStep01 = listAppend(classStep01, "done", " ");
			classStep02 = listAppend(classStep02, "done", " ");
			classStep03 = listAppend(classStep03, "lastDone", " ");
			classStep04 = listAppend(classStep04, "current", " ");
		}

		if ( event.getRequestName() eq "sportTask" or event.getRequestName() eq "sportTaskSetTime" or event.getRequestName() eq "sportTaskArrange" ) {
			classStep01 = listAppend(classStep01, "done", " ");
			classStep02 = listAppend(classStep02, "done", " ");
			classStep03 = listAppend(classStep03, "done", " ");
			classStep04 = listAppend(classStep04, "lastDone", " ");
			classStep05 = listAppend(classStep05, "current", " ");
		}
	
	</cfscript>

</cfsilent>

<div class="UIWizard clearfix">
	<ul class="fiveStep stepNavigation">
		<li class="<cfoutput>#classStep01#</cfoutput>"><a href="<cfoutput>#buildURL('taskSummary', menuArgs)#</cfoutput>"><em>排课任务概况</em><span>学期排课教学任务汇总</span></a></li>
		<li class="<cfoutput>#classStep02#</cfoutput>"><a href="<cfoutput>#buildURL('planTask', menuArgs)#</cfoutput>"><em>计划课程</em><span>培养方案规定课程安排</span></a></li>
		<li class="<cfoutput>#classStep03#</cfoutput>"><a href="<cfoutput>#buildURL('commonTask', menuArgs)#</cfoutput>"><em>全校通选课</em><span>全校性选修课程安排</span></a></li>
		<li class="<cfoutput>#classStep04#</cfoutput>"><a href="<cfoutput>#buildURL('openTask', menuArgs)#</cfoutput>"><em>其他课程</em><span>轮开课程和小语种排课</span></a></li>
		<li class="<cfoutput>#classStep05#</cfoutput>"><a href="<cfoutput>#buildURL('sportTask', menuArgs)#</cfoutput>"><em>体育项目</em><span>体育项目上课安排</span></a></li>
	</ul>
</div>
